<template>
    <render/>
</template>
<script setup>
import { ref, h } from 'vue';
import Home from './home.vue';
const counter = ref(0)
const increment = () => {
    counter.value++
}
const decrememt = () => {
    counter.value--
}
const render = () => h("div", { className: "app" }, [
    h("h2", null, `当前计数：${counter.value}`),
    h("button", { onClick: increment }, "+1"),
    h("button", { onClick: decrememt }, "-1"),
    h(Home)
])
</script>
<style scoped lang="less"></style>